package izzat.fit.action.remote;

import izzat.fit.action.entity.Action;
import izzat.fit.action.entity.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @ClassName: DBRemote
 * @Description: 调用 db-service 服务
 * @Author: Izzat
 * @Date: 2019-12-31 18:58
 * @Version: v1.0
 */
@FeignClient(name= "db-service")
@RequestMapping(value = "db-service/action")
public interface  DBRemote {
    @RequestMapping(value = "test")
    public String hello();

    @RequestMapping(value = "allAction")
    public ResponseEntity allAction();

    @RequestMapping(value = "findById")
    public ResponseEntity findById(int id);

    @RequestMapping(value = "findByPart")
    public ResponseEntity findByPart(String part);


}
